package com.sise.thread.FutureModel;

import java.util.concurrent.Callable;

/**
 * 作者：idea
 * 日期：2018/6/21
 * 描述：
 */
public class RealData implements Callable<String> {

    public String param;
    public RealData(String param){
        this.param=param;
    }

    @Override
    public String call() throws Exception {
        StringBuffer stb=new StringBuffer();
        for(int i=0;i<100;i++){
            stb.append(param);
//            Thread.sleep(100);
        }
        return stb.toString();
    }
}
